# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :manage.py
# @Time      :2022/5/27 0027 15:01
# @Author    :何胜利
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from main import app
from models import db
from models.user import *

manage = Manager(app)

# 生成迁移文件
migrate = Migrate(app, db)

# 添加迁移命令
manage.add_command("db", MigrateCommand)

if __name__ == '__main__':
    manage.run()
